/* 帮助中心页面样式 */

/* 帮助中心容器 */
.help-container {
    display: flex;
    max-width: 1280px;
    margin: 2rem auto;
    min-height: calc(100vh - 70px - 350px); /* 减去头部和底部的高度 */
}

/* 侧边栏 */
.help-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    margin-right: 2rem;
    overflow: hidden;
}

/* 搜索框 */
.help-search {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.1);
}

.search-button {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button img {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

/* 帮助导航 */
.help-nav {
    padding: 1rem 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.help-nav-section {
    margin-bottom: 1.5rem;
}

.help-nav-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    padding: 0 1.5rem;
    margin: 0 0 0.75rem;
}

.help-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-nav-section li {
    margin: 0;
}

.help-nav-section a {
    display: block;
    padding: 0.625rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.help-nav-section a:hover {
    background-color: var(--color-gray-50);
    color: var(--color-primary);
}

.help-nav-section a.active {
    background-color: var(--color-primary-50);
    color: var(--color-primary);
    font-weight: 500;
    border-left: 3px solid var(--color-primary);
}

/* 联系支持 */
.help-contact {
    padding: 1.5rem;
    background-color: var(--color-gray-50);
    border-top: 1px solid var(--color-border);
}

.help-contact h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 1rem;
}

/* 帮助内容区 */
.help-content {
    flex: 1;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-sm);
    padding: 2rem;
    overflow: hidden;
}

/* 面包屑导航 */
.help-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.help-breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-breadcrumb a:hover {
    color: var(--color-primary);
}

.help-breadcrumb span {
    color: var(--color-text);
}

/* 帮助部分 */
.help-section {
    display: none;
}

.help-section.active {
    display: block;
}

.help-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 1rem;
}

.help-intro {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 帮助卡片 */
.help-card {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
}

.help-card:last-child {
    border-bottom: none;
}

.help-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 1.25rem;
}

.help-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 1.25rem;
}

.help-image {
    margin: 1.5rem 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.help-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 功能列表 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--color-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon img {
    width: 24px;
    height: 24px;
}

.feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem;
}

.feature-content p {
    font-size: 0.9375rem;
    margin: 0;
}

/* 步骤列表 */
.steps {
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: var(--color-primary-50);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem;
}

.step-content p {
    font-size: 0.9375rem;
    margin: 0 0 0.75rem;
}

/* 视频教程 */
.video-tutorials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.video-item {
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.play-button img {
    width: 20px;
    height: 20px;
}

.video-item:hover .play-button {
    background-color: var(--color-primary);
}

.video-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 0.25rem;
}

.video-item p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

/* 反馈部分 */
.help-feedback {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: var(--color-gray-50);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.help-feedback h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 1rem;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.feedback-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.feedback-btn img {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

/* 相关文章 */
.help-related {
    margin-top: 2.5rem;
}

.help-related h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 1rem;
}

.related-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 0.75rem;
}

.related-articles a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
    position: relative;
    padding-left: 1.25rem;
}

.related-articles a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.related-articles a:hover {
    text-decoration: underline;
}

/* 联系方式 */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.contact-icon img {
    width: 32px;
    height: 32px;
}

.contact-method h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 0.5rem;
}

.contact-method p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin: 0 0 1.25rem;
}

.qrcode-container {
    width: 120px;
    height: 120px;
    margin: 1.25rem auto 0;
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

.qrcode {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 联系表单 */
.contact-form-container {
    margin-bottom: 3rem;
}

.contact-form-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 1.5rem;
}

.contact-form {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--box-shadow-sm);
}

.file-upload {
    display: flex;
    align-items: center;
}

.file-input {
    display: none;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.file-upload-btn img {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.file-name {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* 常见问题 */
.faq-section {
    margin-top: 3rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 1.5rem;
}

.accordion {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1.25rem;
    background-color: var(--color-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--color-gray-50);
}

.accordion-header h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin: 0;
}

.accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-text-light);
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.accordion-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
}

.accordion-content {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 1.25rem 1.25rem;
    max-height: 500px;
}

.accordion-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .help-container {
        max-width: 100%;
        padding: 0 1.5rem;
        margin: 1.5rem auto;
    }
}

@media (max-width: 992px) {
    .feature-list,
    .video-tutorials,
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .help-container {
        flex-direction: column;
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .help-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .help-nav {
        max-height: none;
        padding: 0.5rem 0;
    }
    
    .help-content {
        padding: 1.5rem;
    }
    
    .help-section h1 {
        font-size: 1.75rem;
    }
    
    .help-intro {
        font-size: 1rem;
    }
    
    .help-card h2 {
        font-size: 1.25rem;
    }
    
    .feature-list,
    .video-tutorials,
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .help-card {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .step-content {
        padding-top: 0;
    }
    
    .feedback-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}